package com.qef.com.mmovie.activity

import android.support.v7.widget.Toolbar

import com.jaeger.library.StatusBarUtil
import com.qef.com.mmovie.R
import com.qef.com.mmovie.base.SimpleActivity
import com.qef.com.mmovie.fragment.LoginFragment

import butterknife.BindView

import com.qef.com.mmovie.R.id.toolbar

/**
 * Created by feq on 2017/4/9.
 */

class LoginActivity : SimpleActivity() {
    //    @BindView(toolbar)
    //    Toolbar mToolbar;

    override fun getLayout(): Int {
        StatusBarUtil.setColor(this, this.resources.getColor(R.color.state))
        return R.layout.login_root_fragment
    }

    override fun initEventAndData() {
        initView()
    }

    private fun initView() {
        loadRootFragment(R.id.act_container, LoginFragment())
        //        mToolbar.setTitle("");
        //        initToolbarNav(mToolbar);
        //
    }

    protected fun initToolbarNav(toolbar: Toolbar) {
        toolbar.setNavigationIcon(R.mipmap.ic_arrow_back_white_24dp)
        toolbar.setNavigationOnClickListener { v -> this@LoginActivity.finish() }
        toolbar.inflateMenu(R.menu.video_menu)
    }
}
